﻿using System.ComponentModel.DataAnnotations;

namespace RescueApp.Models
{
    public class RescueApply//救援申请表
    {
        [Key]
        public int RescueID { get; set; }//RescueID设为主键

        [Required, StringLength(10)]//设置必填项，字符串长度最大为10
        public string LicenseID { get; set; }

        [Required, StringLength(20)]
        public string CarType { get; set; }

        [Required, StringLength(18)]
        public string DriverLicenseID { get; set; }

        [Required, StringLength(11)]
        public string Phone { get; set; }

        [Required, StringLength(50)]
        public string RescueLocation { get; set; }

        [Required, StringLength(50)]
        public string Destination { get; set; }

        [Required]
        public DateTime FillingDate { get; set; }
    }
}
